-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[API Compatibility] Add pp.Tensor.mul_, pp.autograd.Function, pp.argwhere #74493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/tensor/math.py
Outdated
[2, 4, 6]]]) | ||
|
||
""" | ||
other_tensor = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个后面会统一开展,即二元函数支持scalar。
目前就写别名就可以
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/re-run all-failed |
/re-run all-failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/re-run all-failed |
…here (PaddlePaddle#74493) * Add pp.Tensor.mul_, pp.autograd.Function, pp.argwhere * Remove scalar support for mul and mul_
PR Category
User Experience
PR Types
New features
Description
新增三个对齐 torch 的API:pp.Tensor.mul_, pp.autograd.Function, pp.argwhere
pp.Tensor.mul_:相较 pp.multiply,支持第二个参数为标量
pp.autograd.Function:为 pp.autograd.Layer 的别名
pp.argwhere: 为 pp.nonzero 的子集,去掉as_tuple 参数。